# 控制流

if 2<3
    puts 'less'
else
    puts 'more'
end
# less

quantify =-> number {
    case number
    when 1
        'one'
    when 2
        'a couple'
    else
        'many'
    end
}

q_res1 = quantify.call(2)
puts q_res1
# a couple

x = 1
while x < 1000
    x = x * 2
end

puts x
# 1024
